import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqUrlHelper } from "../Public/SeqUrlHelper";
import { SSessionKey } from "../Public/SSessionKey";
import { SUrl } from "../Public/SUrl";
type int = number;
//class SLoginReturn

export class SLoginReturn {
  public __write(arg1: SerializeStream): void {
    arg1.writeInt(this.playerId);
    arg1.writeString(this.name);
    this.sessionKey.__write(arg1);
    SeqUrlHelper.write(arg1, this.urls);
  }

  public __read(arg1: SerializeStream): void {
    this.playerId = arg1.readInt();
    this.name = arg1.readString();
    this.sessionKey = new SSessionKey();
    this.sessionKey.__read(arg1);
    this.urls = SeqUrlHelper.read(arg1);
  }

  public /* var */ playerId!: int;

  public /* var */ name!: string;

  public /* var */ sessionKey!: SSessionKey;

  public /* var */ urls!: Array<SUrl>;
}
